<h1>Bibliothèque</h1>
<ul>
<% for book in @books %>
  <li><span id="title_<%= h book.id%>"><%= h book.title%></span></li>
<% end %>
</ul>

<script>
	<% for book in @books %>
		new Ajax.InPlaceEditor("title_<%= h book.id%>", "updateTitle?id=<%= book.id%>", {});
	<% end %>	
</script>